package com.chujian.framework.component.def;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 列
 */
@Getter
@Setter
@Accessors(chain = true)
@NoArgsConstructor
@ToString
public class YCol {

    public YCol(String field, String name) {
        this.col = field;
        this.name = name;
    }

    // 列名
    private String col;
    // 列描述（字段注释）
    private String name;
    // 数据类型 com.prkj.seed.component.enums.DataType
    private String dataType;

    private String javaField;
    private String javaClass;

    // 是否可见
    private boolean visible = true;
    private boolean isPk = true;

    // 是否有权限
    private boolean hasAuth = true;
}
